package com.huadao.pda.material;

import com.huadao.pda.base.BaseHttpPresenter;
import com.huadao.pda.base.BaseView;
import com.huadao.pda.data.bean.Dispensing;

import java.util.Date;
import java.util.List;

public interface IMaterialContract {
    interface IMaterialView extends BaseView{
        void onGetMaterialList(List<Dispensing> materialList);
        void onFinishGet();
        String getProjectId();
        Date getProjectStartTime();
        void onConsumeMaterial(Dispensing dispensing,boolean isSucc);
    }

    abstract class IMaterialPresenter extends BaseHttpPresenter<IMaterialView>{
        abstract void getMaterialList();
        public abstract void finishGet();
        public abstract void getMaterialListByDay(int day);
        abstract void consumeMaterial(Dispensing dispensing);
    }
}
